package cn.net.xinyi.xs.util;

import java.util.Comparator;

import cn.net.xinyi.xs.model.BaseObject;

public class CustomComparator implements Comparator<BaseObject> {
	public int compare(BaseObject o1, BaseObject o2) {
		int val1 = o1.getSort().intValue();
		int val2 = o2.getSort().intValue();
		return (val1 < val2 ? -1 : (val1 == val2 ? 0 : 1));
	}
}
